home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15731 < prev    next >
Encoding:
Text File  |  1996-08-05  |  979 b   |  42 lines

  1. Path: ix.netcom.com!netnews
  2. From: VanCLy@ix.netcom.com  (Van Chinh Ly)
  3. Newsgroups: comp.lang.c++
  4. Subject: string class in STL?
  5. Date: 6 Apr 1996 06:39:56 GMT
  6. Organization: Netcom
  7. Message-ID: <4k53js$i4o@cloner2.ix.netcom.com>
  8. Reply-To: VanCLy@ix.netcom.com
  9. NNTP-Posting-Host: sfo-ca5-04.ix.netcom.com
  10. X-NETCOM-Date: Fri Apr 05 10:39:57 PM PST 1996
  11. X-Newsreader: IBM NewsReader/2 v1.2.5
  12.  
  13. Is there a 'string' class in the STL?
  14.  
  15. I was enrolled in an STL course, couldn't make it,
  16. got the course materials afterwards, read it, followed
  17. the examples on one of the slides:
  18.  
  19. #include "map.h"
  20. #include "bstring.h"
  21.  
  22. int main()
  23. {
  24.     map<string, int, less<string>> name_age;
  25.  
  26.     name_age["Some name"] = 14;
  27.  
  28.     cout << "Some name's value = " << name_age["Some name"] << endl;
  29.  
  30.     return 0;
  31. }
  32.  
  33.  
  34.  
  35. First of all, "bstring.h" is not one of my STL *.h files.  Secondly,
  36. I performed a "grep" command through all the header files but couldn't
  37. find any "string" class.
  38.  
  39. Can someone help me?
  40.  
  41. Van
  42.